/*
               File: AlumnoGeneral
        Description: Alumno General
             Author: GeneXus C# Generator version 10_1_5-42940
       Generated on: 10/24/2011 10:3:56.96
       Program type: Callable routine
          Main DBMS: sqlserver
*/
using System;
using System.Collections;
using GeneXus.Utils;
using GeneXus.Resources;
using GeneXus.Application;
using GeneXus.Metadata;
using System.Data;
using System.Data.SqlClient;
using GeneXus.Data;
using com.genexus;
using GeneXus.Data.ADO;
using GeneXus.Data.NTier;
using GeneXus.Data.NTier.ADO;
using System.Runtime.Remoting;
using GeneXus.WebControls;
using GeneXus.Http;
using GeneXus.XML;
using GeneXus.Search;
using GeneXus.Encryption;
using GeneXus.Http.Client;
using GeneXus.Http.Server;
using System.Xml.Serialization;
using System.Data.SqlTypes;
namespace GeneXus.Programs {
   public class alumnogeneral : GXWebComponent, System.Web.SessionState.IRequiresSessionState
   {
      public alumnogeneral( )
      {
         context = new GxContext(  );
         DataStoreUtil.LoadDataStores( context);
         dsDefault = context.GetDataStore("Default") ;
         IsMain = true;
         context.SetTheme("Classic");
      }

      public alumnogeneral( IGxContext context )
      {
         this.context = context;
         IsMain = false;
         dsDefault = context.GetDataStore("Default") ;
      }

      public void release( )
      {
      }

      public void execute( short aP0_AlumnoId )
      {
         this.A1AlumnoId = aP0_AlumnoId;
         executePrivate();
      }

      void executePrivate( )
      {
         isStatic = false;
         webExecute();
      }

      public override void SetPrefix( String sPPrefix )
      {
         sPrefix = sPPrefix;
      }

      protected override void createObjects( )
      {
      }

      protected void INITWEB( )
      {
         initialize_properties( ) ;
         if ( StringUtil.Len( (String)(sPrefix)) == 0 )
         {
            if ( nGotPars == 0 )
            {
               entryPointCalled = false ;
               gxfirstwebparm = GetNextPar( ) ;
               gxfirstwebparm_bkp = gxfirstwebparm ;
               gxfirstwebparm = DecryptAjaxCall( gxfirstwebparm, "High") ;
               if ( StringUtil.StrCmp(gxfirstwebparm, "dyncall") == 0 )
               {
                  setAjaxCallMode();
                  if ( ! IsValidAjaxCall( true) )
                  {
                     GxWebError = 1 ;
                     return  ;
                  }
                  dyncall( GetNextPar( )) ;
                  return  ;
               }
               else if ( StringUtil.StrCmp(gxfirstwebparm, "dyncomponent") == 0 )
               {
                  setAjaxEventMode();
                  if ( ! IsValidAjaxCall( true) )
                  {
                     GxWebError = 1 ;
                     return  ;
                  }
                  nDynComponent = 1 ;
                  sCompPrefix = GetNextPar( ) ;
                  sSFPrefix = GetNextPar( ) ;
                  A1AlumnoId = (short)(NumberUtil.Val( GetNextPar( ), ".")) ;
                  context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
                  componentprepare(new Object[] {(String)sCompPrefix,(String)sSFPrefix,(short)A1AlumnoId});
                  componentstart();
                  context.httpAjaxContext.ajax_rspStartCmp(sPrefix);
                  componentdraw();
                  context.httpAjaxContext.ajax_rspEndCmp();
                  return  ;
               }
               else if ( StringUtil.StrCmp(gxfirstwebparm, "gxajaxEvt") == 0 )
               {
                  setAjaxEventMode();
                  if ( ! IsValidAjaxCall( true) )
                  {
                     GxWebError = 1 ;
                     return  ;
                  }
                  gxfirstwebparm = GetNextPar( ) ;
               }
               else
               {
                  if ( ! IsValidAjaxCall( false) )
                  {
                     GxWebError = 1 ;
                     return  ;
                  }
                  gxfirstwebparm = gxfirstwebparm_bkp ;
               }
            }
         }
         context.SetTheme("Classic");
      }

      public override void webExecute( )
      {
         if ( initialized == 0 )
         {
            createObjects();
            initialize();
         }
         INITWEB( ) ;
         if ( ! isAjaxCallMode( ) )
         {
            PA0K2( ) ;
            if ( ( GxWebError == 0 ) && ! isAjaxCallMode( ) )
            {
               /* GeneXus formulas. */
               AV14Pgmname = "AlumnoGeneral" ;
               context.Gx_err = 0 ;
               WS0K2( ) ;
               if ( ! isAjaxCallMode( ) )
               {
                  if ( nDynComponent == 0 )
                  {
                     throw new System.Net.WebException("WebComponent is not allowed to run") ;
                  }
               }
            }
            if ( context.isAjaxRequest( ) )
            {
               enableOutput();
               if ( ! context.isAjaxRequest( ) )
               {
                  context.GX_webresponse.AppendHeader("Cache-Control", "max-age=0");
               }
               if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) )
               {
                  context.GX_webresponse.AddString((String)(context.getJSONResponse( )));
               }
               else
               {
                  context.Redirect( context.wjLoc );
                  context.DispatchAjaxCommands();
               }
            }
         }
         this.cleanup();
      }

      protected void RenderHtmlHeaders( )
      {
         GxWebStd.gx_html_headers( context, 0, "", "", Form.Meta, Form.Metaequiv, "IE=EmulateIE7");
      }

      protected void RenderHtmlOpenForm( )
      {
         if ( StringUtil.Len( sPrefix) == 0 )
         {
            context.WriteHtmlText( "<title>") ;
            context.WriteHtmlText( "Alumno General") ;
            context.WriteHtmlTextNl( "</title>") ;
            if ( StringUtil.Len( sDynURL) > 0 )
            {
               context.WriteHtmlText( "<BASE href=\""+sDynURL+"\" />") ;
            }
            define_styles( ) ;
         }
         if ( ! context.isSmartDevice( ) )
         {
            context.AddJavascriptSource("gxgral.js", "?42940");
            context.AddJavascriptSource("gxcfg.js", "?42940");
         }
         else
         {
            context.AddJavascriptSource("gxapiSD.js", "?42940");
            context.AddJavascriptSource("gxfxSD.js", "?42940");
            context.AddJavascriptSource("gxtypesSD.js", "?42940");
            context.AddJavascriptSource("gxpopupSD.js", "?42940");
            context.AddJavascriptSource("gxfrmutlSD.js", "?42940");
            context.AddJavascriptSource("gxgridSD.js", "?42940");
            context.AddJavascriptSource("JavaScripTableSD.js", "?42940");
            context.AddJavascriptSource("rijndaelSD.js", "?42940");
            context.AddJavascriptSource("gxgralSD.js", "?42940");
         }
         context.AddJavascriptSource("calendar.js", "?42940");
         context.AddJavascriptSource("calendar-setup.js", "?42940");
         context.AddJavascriptSource("calendar-es.js", "?42940");
         if ( StringUtil.Len( sPrefix) == 0 )
         {
            context.CloseHtmlHeader();
            FormProcess = " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,false,false)\" onkeydown=\"gx.evt.onkeypress(null,false,false)\"" ;
            context.WriteHtmlText( "<body") ;
            context.WriteHtmlText( " "+"class=\"Form\""+" "+" style=\"-moz-opacity:0;opacity:0;"+"\""+FormProcess+">") ;
            context.skipLines(1);
            context.WriteHtmlTextNl( "<form id=\"MAINFORM\" onsubmit=\"try{return gx.csv.validForm()}catch(e){return true;}\" name=\"MAINFORM\" method=\"post\" action=\""+formatLink("alumnogeneral.aspx") + "?" + UrlEncode("" +A1AlumnoId)+"\" class=\""+"Form"+"\">") ;
            GxWebStd.gx_hidden_field( context, "_EventName", "");
            GxWebStd.gx_hidden_field( context, "_EventGridId", "");
            GxWebStd.gx_hidden_field( context, "_EventRowId", "");
         }
      }

      protected void RenderHtmlCloseForm0K2( )
      {
         /* Send hidden variables. */
         /* Send saved values. */
         GxWebStd.gx_hidden_field( context, sPrefix+"wcpOA1AlumnoId", StringUtil.LTrim( StringUtil.NToC( (decimal)(wcpOA1AlumnoId), 4, 0, ",", "")));
         if ( ( StringUtil.Len( sPrefix) != 0 ) && context.isAjaxRequest( ) )
         {
            context.AddJavascriptSource("alumnogeneral.js", "?103571");
         }
         GxWebStd.gx_hidden_field( context, sPrefix+"GX_FocusControl", GX_FocusControl);
         define_styles( ) ;
         if ( StringUtil.Len( sPrefix) == 0 )
         {
            SendAjaxEncryptionKey();
            SendComponentObjects();
            SendServerCommands();
            SendState();
            context.WriteHtmlTextNl( "</form>") ;
            include_jscripts( ) ;
            context.WriteHtmlTextNl( "</body>") ;
            context.WriteHtmlTextNl( "</html>") ;
         }
      }

      protected void WB0K0( )
      {
         if ( context.isAjaxRequest( ) )
         {
            disableOutput();
         }
         if ( ! wbLoad )
         {
            if ( StringUtil.Len( sPrefix) == 0 )
            {
               RenderHtmlHeaders( ) ;
            }
            RenderHtmlOpenForm( ) ;
            if ( StringUtil.Len( sPrefix) != 0 )
            {
               GxWebStd.gx_hidden_field( context, sPrefix+"_CMPPGM", "alumnogeneral.aspx");
            }
            GxWebStd.gx_msg_list( context, "", context.GX_msglist.DisplayMode, "", "", sPrefix, "false");
            wb_table1_2_0K2( true) ;
         }
         else
         {
            wb_table1_2_0K2( false) ;
         }
         return  ;
      }

      protected void wb_table1_2_0K2e( bool wbgen )
      {
         if ( wbgen )
         {
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 63,'" + sPrefix + "',false,'',0)\"" ;
            ClassString = "ActionButtons" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, context.GetButtonType( ), bttBtnupdate_Internalname, "Modifica", "Modifica", "", StyleString, ClassString, 1, 1, "rounded", 5, bttBtnupdate_Jsonclick, sPrefix+"E\\'DOUPDATE\\'.", TempTags, "", "", "HLP_AlumnoGeneral.htm");
            TempTags = "  onfocus=\"gx.evt.onfocus(this, 64,'" + sPrefix + "',false,'',0)\"" ;
            ClassString = "ActionButtons" ;
            StyleString = "" ;
            GxWebStd.gx_button_ctrl( context, context.GetButtonType( ), bttBtndelete_Internalname, "Eliminar", "Eliminar", "", StyleString, ClassString, 1, 1, "rounded", 5, bttBtndelete_Jsonclick, sPrefix+"E\\'DODELETE\\'.", TempTags, "", "", "HLP_AlumnoGeneral.htm");
         }
         wbLoad = true ;
      }

      protected void START0K2( )
      {
         wbLoad = false ;
         wbEnd = 0 ;
         wbStart = 0 ;
         if ( StringUtil.Len( sPrefix) == 0 )
         {
            Form.Meta.addItem("Generator", "GeneXus C#", 0) ;
            Form.Meta.addItem("Version", "10_1_5-42940", 0) ;
            Form.Meta.addItem("Description", "Alumno General", 0) ;
            context.wjLoc = "" ;
            context.nUserReturn = 0 ;
            context.wbHandled = 0 ;
            if ( StringUtil.Len( sPrefix) == 0 )
            {
               sXEvt = cgiGet( "_EventName") ;
               if ( ! GetJustCreated( ) && ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 ) )
               {
               }
            }
         }
         wbErr = false ;
         if ( ( StringUtil.Len( sPrefix) == 0 ) || ( nDraw == 1 ) )
         {
            if ( nDoneStart == 0 )
            {
               STRUP0K0( ) ;
            }
         }
      }

      protected void WS0K2( )
      {
         START0K2( ) ;
         EVT0K2( ) ;
      }

      protected void EVT0K2( )
      {
         sXEvt = cgiGet( "_EventName") ;
         if ( ( ( ( StringUtil.Len( sPrefix) == 0 ) ) || ( StringUtil.StringSearch( sXEvt, sPrefix, 1) > 0 ) ) && ! GetJustCreated( ) && ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 ) )
         {
            if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) && ! wbErr )
            {
               /* Read Web Panel buttons. */
               if ( context.wbHandled == 0 )
               {
                  if ( StringUtil.Len( sPrefix) == 0 )
                  {
                     sEvt = cgiGet( "_EventName") ;
                     EvtGridId = cgiGet( "_EventGridId") ;
                     EvtRowId = cgiGet( "_EventRowId") ;
                  }
                  if ( StringUtil.Len( sEvt) > 0 )
                  {
                     sEvtType = StringUtil.Left( sEvt, 1) ;
                     sEvt = StringUtil.Right( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
                     if ( StringUtil.StrCmp(sEvtType, "E") == 0 )
                     {
                        sEvtType = StringUtil.Right( sEvt, 1) ;
                        if ( StringUtil.StrCmp(sEvtType, ".") == 0 )
                        {
                           sEvt = StringUtil.Left( sEvt, (short)(StringUtil.Len( sEvt)-1)) ;
                           if ( StringUtil.StrCmp(sEvt, "RFR") == 0 )
                           {
                              if ( ( StringUtil.Len( sPrefix) != 0 ) && ( nDoneStart == 0 ) )
                              {
                                 STRUP0K0( ) ;
                              }
                              if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
                              {
                                 context.wbHandled = 1 ;
                                 if ( ! wbErr )
                                 {
                                    dynload_actions( ) ;
                                 }
                              }
                           }
                           else if ( StringUtil.StrCmp(sEvt, "START") == 0 )
                           {
                              if ( ( StringUtil.Len( sPrefix) != 0 ) && ( nDoneStart == 0 ) )
                              {
                                 STRUP0K0( ) ;
                              }
                              if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
                              {
                                 context.wbHandled = 1 ;
                                 if ( ! wbErr )
                                 {
                                    dynload_actions( ) ;
                                    /* Execute user event: E110K2 */
                                    E110K2 ();
                                 }
                              }
                           }
                           else if ( StringUtil.StrCmp(sEvt, "LOAD") == 0 )
                           {
                              if ( ( StringUtil.Len( sPrefix) != 0 ) && ( nDoneStart == 0 ) )
                              {
                                 STRUP0K0( ) ;
                              }
                              if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
                              {
                                 context.wbHandled = 1 ;
                                 if ( ! wbErr )
                                 {
                                    dynload_actions( ) ;
                                    /* Execute user event: E120K2 */
                                    E120K2 ();
                                 }
                              }
                           }
                           else if ( StringUtil.StrCmp(sEvt, "'DOUPDATE'") == 0 )
                           {
                              if ( ( StringUtil.Len( sPrefix) != 0 ) && ( nDoneStart == 0 ) )
                              {
                                 STRUP0K0( ) ;
                              }
                              if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
                              {
                                 context.wbHandled = 1 ;
                                 if ( ! wbErr )
                                 {
                                    dynload_actions( ) ;
                                    /* Execute user event: E130K2 */
                                    E130K2 ();
                                 }
                              }
                           }
                           else if ( StringUtil.StrCmp(sEvt, "'DODELETE'") == 0 )
                           {
                              if ( ( StringUtil.Len( sPrefix) != 0 ) && ( nDoneStart == 0 ) )
                              {
                                 STRUP0K0( ) ;
                              }
                              if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
                              {
                                 context.wbHandled = 1 ;
                                 if ( ! wbErr )
                                 {
                                    dynload_actions( ) ;
                                    /* Execute user event: E140K2 */
                                    E140K2 ();
                                 }
                              }
                           }
                           else if ( StringUtil.StrCmp(sEvt, "ENTER") == 0 )
                           {
                              if ( ( StringUtil.Len( sPrefix) != 0 ) && ( nDoneStart == 0 ) )
                              {
                                 STRUP0K0( ) ;
                              }
                              if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
                              {
                                 context.wbHandled = 1 ;
                                 if ( ! wbErr )
                                 {
                                    if ( ! wbErr )
                                    {
                                       Rfr0gs = false ;
                                       if ( ! Rfr0gs )
                                       {
                                       }
                                       dynload_actions( ) ;
                                    }
                                 }
                              }
                              /* No code required for Cancel button. It is implemented as the Reset button. */
                           }
                           else if ( StringUtil.StrCmp(sEvt, "LSCR") == 0 )
                           {
                              if ( ( StringUtil.Len( sPrefix) != 0 ) && ( nDoneStart == 0 ) )
                              {
                                 STRUP0K0( ) ;
                              }
                              if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
                              {
                                 context.wbHandled = 1 ;
                                 if ( ! wbErr )
                                 {
                                    dynload_actions( ) ;
                                 }
                              }
                           }
                        }
                        else
                        {
                        }
                     }
                     context.wbHandled = 1 ;
                  }
               }
            }
         }
      }

      protected void WE0K2( )
      {
         if ( ! GxWebStd.gx_redirect( context) )
         {
            Rfr0gs = true ;
            Refresh( ) ;
            if ( ! GxWebStd.gx_redirect( context) )
            {
               RenderHtmlCloseForm0K2( ) ;
            }
         }
      }

      protected void PA0K2( )
      {
         if ( nDonePA == 0 )
         {
            if ( StringUtil.Len( sPrefix) != 0 )
            {
               initialize_properties( ) ;
            }
            nDonePA = 1 ;
         }
      }

      protected void dynload_actions( )
      {
         /* End function dynload_actions */
      }

      protected void Refresh( )
      {
         RF0K2( ) ;
         /* End function Refresh */
      }

      protected void RF0K2( )
      {
         if ( String.IsNullOrEmpty(StringUtil.RTrim( context.wjLoc)) && ( context.nUserReturn != 1 ) )
         {
            /* Using cursor H000K2 */
            pr_default.execute(0, new Object[] {A1AlumnoId});
            while ( (pr_default.getStatus(0) != 101) )
            {
               A11AlumnoObservaciones = H000K2_A11AlumnoObservaciones[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A11AlumnoObservaciones", A11AlumnoObservaciones);
               n11AlumnoObservaciones = H000K2_n11AlumnoObservaciones[0] ;
               A10AlumnoNombreMadre = H000K2_A10AlumnoNombreMadre[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A10AlumnoNombreMadre", A10AlumnoNombreMadre);
               n10AlumnoNombreMadre = H000K2_n10AlumnoNombreMadre[0] ;
               A9AlumnoNombrePadre = H000K2_A9AlumnoNombrePadre[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A9AlumnoNombrePadre", A9AlumnoNombrePadre);
               n9AlumnoNombrePadre = H000K2_n9AlumnoNombrePadre[0] ;
               A34AlumnoTelefono = H000K2_A34AlumnoTelefono[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A34AlumnoTelefono", A34AlumnoTelefono);
               A31AlumnoWeb = H000K2_A31AlumnoWeb[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A31AlumnoWeb", A31AlumnoWeb);
               n31AlumnoWeb = H000K2_n31AlumnoWeb[0] ;
               A30AlumnoEmail = H000K2_A30AlumnoEmail[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A30AlumnoEmail", A30AlumnoEmail);
               n30AlumnoEmail = H000K2_n30AlumnoEmail[0] ;
               A6AlumnoFechaNacimiento = H000K2_A6AlumnoFechaNacimiento[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A6AlumnoFechaNacimiento", context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"));
               n6AlumnoFechaNacimiento = H000K2_n6AlumnoFechaNacimiento[0] ;
               A5AlumnoNIF = H000K2_A5AlumnoNIF[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A5AlumnoNIF", A5AlumnoNIF);
               n5AlumnoNIF = H000K2_n5AlumnoNIF[0] ;
               A3AlumnoApellidos = H000K2_A3AlumnoApellidos[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A3AlumnoApellidos", A3AlumnoApellidos);
               A2AlumnoNombre = H000K2_A2AlumnoNombre[0] ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A2AlumnoNombre", A2AlumnoNombre);
               A4AlumnoNombreCompleto = A2AlumnoNombre + " " + A3AlumnoApellidos ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A4AlumnoNombreCompleto", A4AlumnoNombreCompleto);
               /* Execute user event: E120K2 */
               E120K2 ();
               /* Exiting from a For First loop. */
               if (true) break;
            }
            pr_default.close(0);
            WB0K0( ) ;
         }
      }

      protected void STRUP0K0( )
      {
         /* Before Start, stand alone formulas. */
         AV14Pgmname = "AlumnoGeneral" ;
         context.Gx_err = 0 ;
         /* Execute Start event if defined. */
         context.wbGlbDoneStart = 0 ;
         /* Execute user event: E110K2 */
         E110K2 ();
         context.wbGlbDoneStart = 1 ;
         nDoneStart = 1 ;
         /* After Start, stand alone formulas. */
         sXEvt = cgiGet( "_EventName") ;
         if ( ! GetJustCreated( ) && ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 ) )
         {
            /* Read saved SDTs. */
            /* Read variables values. */
            if ( StringUtil.Len( sPrefix) == 0 )
            {
               A1AlumnoId = (short)(context.localUtil.CToN( cgiGet( edtAlumnoId_Internalname), ",", ".")) ;
               context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
            }
            A2AlumnoNombre = cgiGet( edtAlumnoNombre_Internalname) ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A2AlumnoNombre", A2AlumnoNombre);
            A3AlumnoApellidos = cgiGet( edtAlumnoApellidos_Internalname) ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A3AlumnoApellidos", A3AlumnoApellidos);
            A4AlumnoNombreCompleto = cgiGet( edtAlumnoNombreCompleto_Internalname) ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A4AlumnoNombreCompleto", A4AlumnoNombreCompleto);
            A5AlumnoNIF = cgiGet( edtAlumnoNIF_Internalname) ;
            n5AlumnoNIF = false ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A5AlumnoNIF", A5AlumnoNIF);
            A6AlumnoFechaNacimiento = context.localUtil.CToD( cgiGet( edtAlumnoFechaNacimiento_Internalname), 2) ;
            n6AlumnoFechaNacimiento = false ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A6AlumnoFechaNacimiento", context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"));
            A30AlumnoEmail = cgiGet( edtAlumnoEmail_Internalname) ;
            n30AlumnoEmail = false ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A30AlumnoEmail", A30AlumnoEmail);
            A31AlumnoWeb = cgiGet( edtAlumnoWeb_Internalname) ;
            n31AlumnoWeb = false ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A31AlumnoWeb", A31AlumnoWeb);
            A34AlumnoTelefono = cgiGet( edtAlumnoTelefono_Internalname) ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A34AlumnoTelefono", A34AlumnoTelefono);
            A9AlumnoNombrePadre = cgiGet( edtAlumnoNombrePadre_Internalname) ;
            n9AlumnoNombrePadre = false ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A9AlumnoNombrePadre", A9AlumnoNombrePadre);
            A10AlumnoNombreMadre = cgiGet( edtAlumnoNombreMadre_Internalname) ;
            n10AlumnoNombreMadre = false ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A10AlumnoNombreMadre", A10AlumnoNombreMadre);
            A11AlumnoObservaciones = cgiGet( edtAlumnoObservaciones_Internalname) ;
            n11AlumnoObservaciones = false ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A11AlumnoObservaciones", A11AlumnoObservaciones);
            /* Read saved values. */
            wcpOA1AlumnoId = (short)(context.localUtil.CToN( cgiGet( sPrefix+"wcpOA1AlumnoId"), ",", ".")) ;
            /* Read subfile selected row values. */
            /* Read hidden variables. */
         }
         else
         {
            dynload_actions( ) ;
         }
      }

      protected void GXStart( )
      {
         /* Execute user event: E110K2 */
         E110K2 ();
         if ( returnInSub )
         {
            returnInSub = true;
            if (true) return;
         }
      }

      protected void E110K2( )
      {
         /* Start Routine */
         new isauthorized(context ).execute(  AV14Pgmname, out  AV5IsAuthorized) ;
         if ( ! AV5IsAuthorized )
         {
            context.wjLoc = formatLink("notauthorized.aspx") + "?" + UrlEncode(StringUtil.RTrim(AV14Pgmname)) ;
         }
         /* Execute user subroutine: S112 */
         S112 ();
         if ( returnInSub )
         {
            returnInSub = true;
            if (true) return;
         }
      }

      protected void nextLoad( )
      {
      }

      protected void E120K2( )
      {
         /* Load Routine */
      }

      protected void E130K2( )
      {
         /* 'DoUpdate' Routine */
         context.wjLoc = formatLink("alumno.aspx") + "?" + UrlEncode(StringUtil.RTrim("UPD")) + "," + UrlEncode("" +A1AlumnoId) ;
      }

      protected void E140K2( )
      {
         /* 'DoDelete' Routine */
         context.wjLoc = formatLink("alumno.aspx") + "?" + UrlEncode(StringUtil.RTrim("DLT")) + "," + UrlEncode("" +A1AlumnoId) ;
      }

      protected void S112( )
      {
         /* 'PREPARETRANSACTION' Routine */
         AV8TrnContext = new SdtTransactionContext(context) ;
         AV8TrnContext.gxTpr_Callerobject = AV14Pgmname ;
         context.httpAjaxContext.ajax_rsp_assign_sdt_attri(sPrefix, false, "AV8TrnContext", (Object)(AV8TrnContext));
         AV8TrnContext.gxTpr_Callerondelete = false ;
         context.httpAjaxContext.ajax_rsp_assign_sdt_attri(sPrefix, false, "AV8TrnContext", (Object)(AV8TrnContext));
         AV8TrnContext.gxTpr_Callerurl = AV11HTTPRequest.ScriptName+"?"+AV11HTTPRequest.QueryString ;
         context.httpAjaxContext.ajax_rsp_assign_sdt_attri(sPrefix, false, "AV8TrnContext", (Object)(AV8TrnContext));
         AV8TrnContext.gxTpr_Transactionname = "Alumno" ;
         context.httpAjaxContext.ajax_rsp_assign_sdt_attri(sPrefix, false, "AV8TrnContext", (Object)(AV8TrnContext));
         AV9TrnContextAtt = new SdtTransactionContext_Attribute(context) ;
         AV9TrnContextAtt.gxTpr_Attributename = "AlumnoId" ;
         context.httpAjaxContext.ajax_rsp_assign_sdt_attri(sPrefix, false, "AV9TrnContextAtt", (Object)(AV9TrnContextAtt));
         AV9TrnContextAtt.gxTpr_Attributevalue = StringUtil.Str( (decimal)(AV7AlumnoId), 4, 0) ;
         context.httpAjaxContext.ajax_rsp_assign_sdt_attri(sPrefix, false, "AV9TrnContextAtt", (Object)(AV9TrnContextAtt));
         AV8TrnContext.gxTpr_Attributes.Add(AV9TrnContextAtt, 0);
         AV10Session.Set("TrnContext", AV8TrnContext.ToXml(false, "TransactionContext", "Tutoria"));
      }

      protected void wb_table1_2_0K2( bool wbgen )
      {
         if ( wbgen )
         {
            /* Table start */
            sStyleString = "" ;
            GxWebStd.gx_table_start( context, tblTbl2_Internalname, tblTbl2_Internalname, "", "Table", 0, "", "", 1, 2, sStyleString, "", 0);
            context.WriteHtmlText( "<tbody>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoid_Internalname, 1, 1, 0, "Id", "", "", "", 0, lblTextblockalumnoid_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoId_Internalname, StringUtil.LTrim( StringUtil.NToC( (decimal)(A1AlumnoId), 4, 0, ",", "")), "", 4, "chr", 1, "row", 4, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", context.localUtil.Format( (decimal)(A1AlumnoId), "ZZZ9"), "", 0, edtAlumnoId_Jsonclick, "", 0, 1, 1, true, "right", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombre_Internalname, 1, 1, 0, "Nombre", "", "", "", 0, lblTextblockalumnonombre_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoNombre_Internalname, StringUtil.RTrim( A2AlumnoNombre), "", 80, "chr", 1, "row", 100, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A2AlumnoNombre, "")), "", 0, edtAlumnoNombre_Jsonclick, "", 0, 1, 1, true, "left", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoapellidos_Internalname, 1, 1, 0, "Apellidos", "", "", "", 0, lblTextblockalumnoapellidos_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoApellidos_Internalname, StringUtil.RTrim( A3AlumnoApellidos), "", 80, "chr", 1, "row", 120, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A3AlumnoApellidos, "")), "", 0, edtAlumnoApellidos_Jsonclick, "", 0, 1, 1, true, "left", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombrecompleto_Internalname, 1, 1, 0, "Nombre Completo", "", "", "", 0, lblTextblockalumnonombrecompleto_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoNombreCompleto_Internalname, StringUtil.RTrim( A4AlumnoNombreCompleto), 1, 0, 0, 80, "chr", 3, "row", StyleString, ClassString, "220", "", -1, 0, "", "", true, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonif_Internalname, 1, 1, 0, "NIF", "", "", "", 0, lblTextblockalumnonif_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoNIF_Internalname, StringUtil.RTrim( A5AlumnoNIF), "", 9, "chr", 1, "row", 9, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A5AlumnoNIF, "")), "", 0, edtAlumnoNIF_Jsonclick, "", 0, 1, 1, true, "left", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnofechanacimiento_Internalname, 1, 1, 0, "Fecha Nacimiento", "", "", "", 0, lblTextblockalumnofechanacimiento_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            context.WriteHtmlText( "<div id=\""+edtAlumnoFechaNacimiento_Internalname+"_dp_container\" class=\"dp_container\" style=\"white-space:nowrap;display:inline;\">") ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoFechaNacimiento_Internalname, context.localUtil.Format(A6AlumnoFechaNacimiento, "99/99/99"), "", 8, "chr", 1, "row", 8, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", context.localUtil.Format( A6AlumnoFechaNacimiento, "99/99/99"), "", 0, edtAlumnoFechaNacimiento_Jsonclick, "", 0, 1, 1, true, "right", "HLP_AlumnoGeneral.htm");
            GxWebStd.gx_bitmap( context, edtAlumnoFechaNacimiento_Internalname+"_dp_trigger", "", "calendar-img.gif", "", ((1==0)||(0==0) ? 0 : 1), 0, "Date selector", "Date selector", 0, 1, 0, "", 0, "", 0, 0, "", "", 0, "", "", "cursor: pointer;vertical-align:text-bottom", "", "", "", "", "", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlTextNl( "</div>") ;
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoemail_Internalname, 1, 1, 0, "Email", "", "", "", 0, lblTextblockalumnoemail_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoEmail_Internalname, StringUtil.RTrim( A30AlumnoEmail), "", 75, "chr", 1, "row", 75, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A30AlumnoEmail, "")), "", 0, edtAlumnoEmail_Jsonclick, "", 0, 1, 1, true, "left", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoweb_Internalname, 1, 1, 0, "Web", "", "", "", 0, lblTextblockalumnoweb_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoWeb_Internalname, StringUtil.RTrim( A31AlumnoWeb), "", 50, "chr", 1, "row", 50, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A31AlumnoWeb, "")), "", 0, edtAlumnoWeb_Jsonclick, "", 0, 1, 1, true, "left", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnotelefono_Internalname, 1, 1, 0, "Telefono", "", "", "", 0, lblTextblockalumnotelefono_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Single line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_single_line_edit( context, edtAlumnoTelefono_Internalname, StringUtil.RTrim( A34AlumnoTelefono), "", 15, "chr", 1, "row", 15, 1, 0, 0, 0, 0, "", "", StyleString, ClassString, "", StringUtil.RTrim( context.localUtil.Format( A34AlumnoTelefono, "")), "", 0, edtAlumnoTelefono_Jsonclick, "", 0, 1, 1, true, "left", "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombrepadre_Internalname, 1, 1, 0, "Nombre Padre", "", "", "", 0, lblTextblockalumnonombrepadre_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoNombrePadre_Internalname, StringUtil.RTrim( A9AlumnoNombrePadre), 1, 0, 0, 80, "chr", 3, "row", StyleString, ClassString, "200", "", -1, 0, "", "", true, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnonombremadre_Internalname, 1, 1, 0, "Nombre Madre", "", "", "", 0, lblTextblockalumnonombremadre_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoNombreMadre_Internalname, StringUtil.RTrim( A10AlumnoNombreMadre), 1, 0, 0, 80, "chr", 3, "row", StyleString, ClassString, "200", "", -1, 0, "", "", true, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "<tr>") ;
            context.WriteHtmlText( "<td>") ;
            /* Text block */
            ClassString = "TextBlock" ;
            StyleString = "" ;
            GxWebStd.gx_label_ctrl( context, lblTextblockalumnoobservaciones_Internalname, 1, 1, 0, "Observaciones", "", "", "", 0, lblTextblockalumnoobservaciones_Jsonclick, "", StyleString, ClassString, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "<td>") ;
            /* Multiple line edit */
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            ClassString = "ReadonlyAttribute" ;
            StyleString = "" ;
            GxWebStd.gx_html_textarea( context, edtAlumnoObservaciones_Internalname, StringUtil.RTrim( A11AlumnoObservaciones), 1, 0, 0, 80, "chr", 9, "row", StyleString, ClassString, "650", "", -1, 0, "", "", true, "HLP_AlumnoGeneral.htm");
            context.WriteHtmlText( "</td>") ;
            context.WriteHtmlText( "</tr>") ;
            context.WriteHtmlText( "</tbody>") ;
            /* End of table */
            context.WriteHtmlText( "</table>") ;
            wb_table1_2_0K2e( true) ;
         }
         else
         {
            wb_table1_2_0K2e( false) ;
         }
      }

      public override void setparameters( Object[] obj )
      {
         createObjects();
         initialize();
         A1AlumnoId = Convert.ToInt16(getParm(obj,0)) ;
         context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
      }

      public override String getresponse( String sGXDynURL )
      {
         initialize_properties( ) ;
         BackMsgLst = context.GX_msglist ;
         context.GX_msglist = LclMsgLst ;
         sDynURL = sGXDynURL ;
         nGotPars = (short)(1) ;
         nGXWrapped = (short)(1) ;
         context.SetWrapped(true);
         PA0K2( ) ;
         WS0K2( ) ;
         WE0K2( ) ;
         this.cleanup();
         context.SetWrapped(false);
         SaveComponentMsgList(sPrefix);
         context.GX_msglist = BackMsgLst ;
         return "";
      }

      public void responsestatic( String sGXDynURL )
      {
      }

      public override void componentbind( Object[] obj )
      {
         if ( IsUrlCreated( ) )
         {
            return  ;
         }
         sCtrlA1AlumnoId = (String)((String)getParm(obj,0)) ;
      }

      public override void componentrestorestate( String sPPrefix ,
                                                  String sPSFPrefix )
      {
         sPrefix = sPPrefix + sPSFPrefix ;
         PA0K2( ) ;
         WCParametersGet( ) ;
      }

      public override void componentprepare( Object[] obj )
      {
         wbLoad = false ;
         sCompPrefix = (String)getParm(obj,0) ;
         sSFPrefix = (String)getParm(obj,1) ;
         sPrefix = sCompPrefix + sSFPrefix ;
         AddComponentObject(sPrefix, "alumnogeneral");
         if ( ( nDoneStart == 0 ) && ( nDynComponent == 0 ) )
         {
            INITWEB( ) ;
         }
         else
         {
            init_default_properties( ) ;
         }
         PA0K2( ) ;
         if ( ! GetJustCreated( ) && ( StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0 ) && ( context.wbGlbDoneStart == 0 ) )
         {
            WCParametersGet( ) ;
         }
         else
         {
            A1AlumnoId = Convert.ToInt16(getParm(obj,2)) ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
         }
         wcpOA1AlumnoId = (short)(context.localUtil.CToN( cgiGet( sPrefix+"wcpOA1AlumnoId"), ",", ".")) ;
         if ( ! GetJustCreated( ) && ( ( A1AlumnoId != wcpOA1AlumnoId ) ) )
         {
            setjustcreated();
         }
         wcpOA1AlumnoId = A1AlumnoId ;
      }

      protected void WCParametersGet( )
      {
         /* Read Component Parameters. */
         sCtrlA1AlumnoId = cgiGet( sPrefix+"A1AlumnoId_CTRL") ;
         if ( StringUtil.Len( sCtrlA1AlumnoId) > 0 )
         {
            A1AlumnoId = (short)(context.localUtil.CToN( cgiGet( sCtrlA1AlumnoId), ",", ".")) ;
            context.httpAjaxContext.ajax_rsp_assign_attri(sPrefix, false, "A1AlumnoId", StringUtil.LTrim( StringUtil.Str( (decimal)(A1AlumnoId), 4, 0)));
         }
         else
         {
            A1AlumnoId = (short)(context.localUtil.CToN( cgiGet( sPrefix+"A1AlumnoId_PARM"), ",", ".")) ;
         }
      }

      public override void componentprocess( String sPPrefix ,
                                             String sPSFPrefix ,
                                             String sCompEvt )
      {
         sCompPrefix = sPPrefix ;
         sSFPrefix = sPSFPrefix ;
         sPrefix = sCompPrefix + sSFPrefix ;
         BackMsgLst = context.GX_msglist ;
         context.GX_msglist = LclMsgLst ;
         INITWEB( ) ;
         nDraw = 0 ;
         PA0K2( ) ;
         sEvt = sCompEvt ;
         WCParametersGet( ) ;
         WS0K2( ) ;
         SaveComponentMsgList(sPrefix);
         context.GX_msglist = BackMsgLst ;
      }

      public override void componentstart( )
      {
         if ( nDoneStart == 0 )
         {
            WCStart( ) ;
         }
      }

      protected void WCStart( )
      {
         nDraw = 1 ;
         BackMsgLst = context.GX_msglist ;
         context.GX_msglist = LclMsgLst ;
         WS0K2( ) ;
         SaveComponentMsgList(sPrefix);
         context.GX_msglist = BackMsgLst ;
      }

      protected void WCParametersSet( )
      {
         GxWebStd.gx_hidden_field( context, sPrefix+"A1AlumnoId_PARM", StringUtil.LTrim( StringUtil.NToC( (decimal)(A1AlumnoId), 4, 0, ",", "")));
         if ( StringUtil.Len( StringUtil.RTrim( sCtrlA1AlumnoId)) > 0 )
         {
            GxWebStd.gx_hidden_field( context, sPrefix+"A1AlumnoId_CTRL", StringUtil.RTrim( sCtrlA1AlumnoId));
         }
      }

      public override void componentdraw( )
      {
         if ( nDoneStart == 0 )
         {
            WCStart( ) ;
         }
         BackMsgLst = context.GX_msglist ;
         context.GX_msglist = LclMsgLst ;
         WCParametersSet( ) ;
         WE0K2( ) ;
         this.cleanup();
         SaveComponentMsgList(sPrefix);
         context.GX_msglist = BackMsgLst ;
      }

      public override String getstring( String sGXControl )
      {
         String sCtrlName ;
         if ( StringUtil.StrCmp(StringUtil.Substring( sGXControl, 1, 1), "&") == 0 )
         {
            sCtrlName = StringUtil.Substring( sGXControl, 2, StringUtil.Len( sGXControl)-1) ;
         }
         else
         {
            sCtrlName = sGXControl ;
         }
         return cgiGet( sPrefix+"v"+StringUtil.Upper( sCtrlName)) ;
      }

      public override void componentjscripts( )
      {
         include_jscripts( ) ;
      }

      public override void componentthemes( )
      {
         define_styles( ) ;
      }

      protected void define_styles( )
      {
         AddStyleSheetFile("calendar-system.css", "?134120");
         AddThemeStyleSheetFile("", "Classic.css", "?1033786");
         idxLst = 1 ;
         while ( idxLst <= Form.Jscriptsrc.Count )
         {
            context.AddJavascriptSource(StringUtil.RTrim( Form.Jscriptsrc.Item(idxLst)), "?1035757");
            idxLst = (int)(idxLst+1) ;
         }
         /* End function define_styles */
      }

      protected void include_jscripts( )
      {
         context.AddJavascriptSource("alumnogeneral.js", "?1035758");
         /* End function include_jscripts */
      }

      protected void init_default_properties( )
      {
         lblTextblockalumnoid_Internalname = sPrefix+"TEXTBLOCKALUMNOID" ;
         edtAlumnoId_Internalname = sPrefix+"ALUMNOID" ;
         lblTextblockalumnonombre_Internalname = sPrefix+"TEXTBLOCKALUMNONOMBRE" ;
         edtAlumnoNombre_Internalname = sPrefix+"ALUMNONOMBRE" ;
         lblTextblockalumnoapellidos_Internalname = sPrefix+"TEXTBLOCKALUMNOAPELLIDOS" ;
         edtAlumnoApellidos_Internalname = sPrefix+"ALUMNOAPELLIDOS" ;
         lblTextblockalumnonombrecompleto_Internalname = sPrefix+"TEXTBLOCKALUMNONOMBRECOMPLETO" ;
         edtAlumnoNombreCompleto_Internalname = sPrefix+"ALUMNONOMBRECOMPLETO" ;
         lblTextblockalumnonif_Internalname = sPrefix+"TEXTBLOCKALUMNONIF" ;
         edtAlumnoNIF_Internalname = sPrefix+"ALUMNONIF" ;
         lblTextblockalumnofechanacimiento_Internalname = sPrefix+"TEXTBLOCKALUMNOFECHANACIMIENTO" ;
         edtAlumnoFechaNacimiento_Internalname = sPrefix+"ALUMNOFECHANACIMIENTO" ;
         lblTextblockalumnoemail_Internalname = sPrefix+"TEXTBLOCKALUMNOEMAIL" ;
         edtAlumnoEmail_Internalname = sPrefix+"ALUMNOEMAIL" ;
         lblTextblockalumnoweb_Internalname = sPrefix+"TEXTBLOCKALUMNOWEB" ;
         edtAlumnoWeb_Internalname = sPrefix+"ALUMNOWEB" ;
         lblTextblockalumnotelefono_Internalname = sPrefix+"TEXTBLOCKALUMNOTELEFONO" ;
         edtAlumnoTelefono_Internalname = sPrefix+"ALUMNOTELEFONO" ;
         lblTextblockalumnonombrepadre_Internalname = sPrefix+"TEXTBLOCKALUMNONOMBREPADRE" ;
         edtAlumnoNombrePadre_Internalname = sPrefix+"ALUMNONOMBREPADRE" ;
         lblTextblockalumnonombremadre_Internalname = sPrefix+"TEXTBLOCKALUMNONOMBREMADRE" ;
         edtAlumnoNombreMadre_Internalname = sPrefix+"ALUMNONOMBREMADRE" ;
         lblTextblockalumnoobservaciones_Internalname = sPrefix+"TEXTBLOCKALUMNOOBSERVACIONES" ;
         edtAlumnoObservaciones_Internalname = sPrefix+"ALUMNOOBSERVACIONES" ;
         tblTbl2_Internalname = sPrefix+"TBL2" ;
         bttBtnupdate_Internalname = sPrefix+"BTNUPDATE" ;
         bttBtndelete_Internalname = sPrefix+"BTNDELETE" ;
         Form.Internalname = sPrefix+"FORM" ;
      }

      protected void initialize_properties( )
      {
         init_default_properties( ) ;
         edtAlumnoTelefono_Jsonclick = "" ;
         edtAlumnoWeb_Jsonclick = "" ;
         edtAlumnoEmail_Jsonclick = "" ;
         edtAlumnoFechaNacimiento_Jsonclick = "" ;
         edtAlumnoNIF_Jsonclick = "" ;
         edtAlumnoApellidos_Jsonclick = "" ;
         edtAlumnoNombre_Jsonclick = "" ;
         edtAlumnoId_Jsonclick = "" ;
      }

      protected void cleanup( )
      {
         flushBuffer();
         CloseOpenCursors();
         if ( IsMain )
         {
            context.CloseConnections() ;
         }
      }

      protected void CloseOpenCursors( )
      {
      }

      public override void initialize( )
      {
         gxfirstwebparm = "" ;
         gxfirstwebparm_bkp = "" ;
         sPrefix = "" ;
         AV14Pgmname = "" ;
         sDynURL = "" ;
         FormProcess = "" ;
         GXt_char1 = "" ;
         GX_FocusControl = "" ;
         TempTags = "" ;
         ClassString = "" ;
         StyleString = "" ;
         bttBtnupdate_Jsonclick = "" ;
         bttBtndelete_Jsonclick = "" ;
         Form = new GXWebForm();
         sXEvt = "" ;
         sEvt = "" ;
         EvtGridId = "" ;
         EvtRowId = "" ;
         sEvtType = "" ;
         scmdbuf = "" ;
         H000K2_A1AlumnoId = new short[1] ;
         H000K2_A11AlumnoObservaciones = new String[] {""} ;
         H000K2_n11AlumnoObservaciones = new bool[] {false} ;
         H000K2_A10AlumnoNombreMadre = new String[] {""} ;
         H000K2_n10AlumnoNombreMadre = new bool[] {false} ;
         H000K2_A9AlumnoNombrePadre = new String[] {""} ;
         H000K2_n9AlumnoNombrePadre = new bool[] {false} ;
         H000K2_A34AlumnoTelefono = new String[] {""} ;
         H000K2_A31AlumnoWeb = new String[] {""} ;
         H000K2_n31AlumnoWeb = new bool[] {false} ;
         H000K2_A30AlumnoEmail = new String[] {""} ;
         H000K2_n30AlumnoEmail = new bool[] {false} ;
         H000K2_A6AlumnoFechaNacimiento = new DateTime[] {DateTime.MinValue} ;
         H000K2_n6AlumnoFechaNacimiento = new bool[] {false} ;
         H000K2_A5AlumnoNIF = new String[] {""} ;
         H000K2_n5AlumnoNIF = new bool[] {false} ;
         H000K2_A3AlumnoApellidos = new String[] {""} ;
         H000K2_A2AlumnoNombre = new String[] {""} ;
         A11AlumnoObservaciones = "" ;
         A10AlumnoNombreMadre = "" ;
         A9AlumnoNombrePadre = "" ;
         A34AlumnoTelefono = "" ;
         A31AlumnoWeb = "" ;
         A30AlumnoEmail = "" ;
         A6AlumnoFechaNacimiento = DateTime.MinValue ;
         A5AlumnoNIF = "" ;
         A3AlumnoApellidos = "" ;
         A2AlumnoNombre = "" ;
         A4AlumnoNombreCompleto = "" ;
         AV8TrnContext = new SdtTransactionContext(context);
         AV11HTTPRequest = new GxHttpRequest( context);
         AV9TrnContextAtt = new SdtTransactionContext_Attribute(context);
         AV10Session = new GxWebSession( context);
         sStyleString = "" ;
         lblTextblockalumnoid_Jsonclick = "" ;
         lblTextblockalumnonombre_Jsonclick = "" ;
         lblTextblockalumnoapellidos_Jsonclick = "" ;
         lblTextblockalumnonombrecompleto_Jsonclick = "" ;
         lblTextblockalumnonif_Jsonclick = "" ;
         lblTextblockalumnofechanacimiento_Jsonclick = "" ;
         GXt_char2 = "" ;
         lblTextblockalumnoemail_Jsonclick = "" ;
         lblTextblockalumnoweb_Jsonclick = "" ;
         lblTextblockalumnotelefono_Jsonclick = "" ;
         lblTextblockalumnonombrepadre_Jsonclick = "" ;
         lblTextblockalumnonombremadre_Jsonclick = "" ;
         lblTextblockalumnoobservaciones_Jsonclick = "" ;
         BackMsgLst = new msglist();
         LclMsgLst = new msglist();
         sCtrlA1AlumnoId = "" ;
         GXt_char3 = "" ;
         pr_default = new DataStoreProvider(context, new GeneXus.Programs.alumnogeneral__default(),
            new Object[][] {
                new Object[] {
               H000K2_A1AlumnoId, H000K2_A11AlumnoObservaciones, H000K2_n11AlumnoObservaciones, H000K2_A10AlumnoNombreMadre, H000K2_n10AlumnoNombreMadre, H000K2_A9AlumnoNombrePadre, H000K2_n9AlumnoNombrePadre, H000K2_A34AlumnoTelefono, H000K2_A31AlumnoWeb, H000K2_n31AlumnoWeb,
               H000K2_A30AlumnoEmail, H000K2_n30AlumnoEmail, H000K2_A6AlumnoFechaNacimiento, H000K2_n6AlumnoFechaNacimiento, H000K2_A5AlumnoNIF, H000K2_n5AlumnoNIF, H000K2_A3AlumnoApellidos, H000K2_A2AlumnoNombre
               }
            }
         );
         AV14Pgmname = "AlumnoGeneral" ;
         /* GeneXus formulas. */
         AV14Pgmname = "AlumnoGeneral" ;
         context.Gx_err = 0 ;
      }

      private short A1AlumnoId ;
      private short wcpOA1AlumnoId ;
      private short nGotPars ;
      private short GxWebError ;
      private short nDynComponent ;
      private short initialized ;
      private short wbEnd ;
      private short wbStart ;
      private short nDraw ;
      private short nDoneStart ;
      private short nDonePA ;
      private short AV7AlumnoId ;
      private short nGXWrapped ;
      private int idxLst ;
      private String gxfirstwebparm ;
      private String gxfirstwebparm_bkp ;
      private String sPrefix ;
      private String sCompPrefix ;
      private String sSFPrefix ;
      private String AV14Pgmname ;
      private String sDynURL ;
      private String FormProcess ;
      private String GXt_char1 ;
      private String GX_FocusControl ;
      private String TempTags ;
      private String ClassString ;
      private String StyleString ;
      private String bttBtnupdate_Internalname ;
      private String bttBtnupdate_Jsonclick ;
      private String bttBtndelete_Internalname ;
      private String bttBtndelete_Jsonclick ;
      private String sXEvt ;
      private String sEvt ;
      private String EvtGridId ;
      private String EvtRowId ;
      private String sEvtType ;
      private String scmdbuf ;
      private String edtAlumnoId_Internalname ;
      private String edtAlumnoNombre_Internalname ;
      private String edtAlumnoApellidos_Internalname ;
      private String edtAlumnoNombreCompleto_Internalname ;
      private String edtAlumnoNIF_Internalname ;
      private String edtAlumnoFechaNacimiento_Internalname ;
      private String edtAlumnoEmail_Internalname ;
      private String edtAlumnoWeb_Internalname ;
      private String edtAlumnoTelefono_Internalname ;
      private String edtAlumnoNombrePadre_Internalname ;
      private String edtAlumnoNombreMadre_Internalname ;
      private String edtAlumnoObservaciones_Internalname ;
      private String sStyleString ;
      private String tblTbl2_Internalname ;
      private String lblTextblockalumnoid_Internalname ;
      private String lblTextblockalumnoid_Jsonclick ;
      private String edtAlumnoId_Jsonclick ;
      private String lblTextblockalumnonombre_Internalname ;
      private String lblTextblockalumnonombre_Jsonclick ;
      private String edtAlumnoNombre_Jsonclick ;
      private String lblTextblockalumnoapellidos_Internalname ;
      private String lblTextblockalumnoapellidos_Jsonclick ;
      private String edtAlumnoApellidos_Jsonclick ;
      private String lblTextblockalumnonombrecompleto_Internalname ;
      private String lblTextblockalumnonombrecompleto_Jsonclick ;
      private String lblTextblockalumnonif_Internalname ;
      private String lblTextblockalumnonif_Jsonclick ;
      private String edtAlumnoNIF_Jsonclick ;
      private String lblTextblockalumnofechanacimiento_Internalname ;
      private String lblTextblockalumnofechanacimiento_Jsonclick ;
      private String edtAlumnoFechaNacimiento_Jsonclick ;
      private String GXt_char2 ;
      private String lblTextblockalumnoemail_Internalname ;
      private String lblTextblockalumnoemail_Jsonclick ;
      private String edtAlumnoEmail_Jsonclick ;
      private String lblTextblockalumnoweb_Internalname ;
      private String lblTextblockalumnoweb_Jsonclick ;
      private String edtAlumnoWeb_Jsonclick ;
      private String lblTextblockalumnotelefono_Internalname ;
      private String lblTextblockalumnotelefono_Jsonclick ;
      private String edtAlumnoTelefono_Jsonclick ;
      private String lblTextblockalumnonombrepadre_Internalname ;
      private String lblTextblockalumnonombrepadre_Jsonclick ;
      private String lblTextblockalumnonombremadre_Internalname ;
      private String lblTextblockalumnonombremadre_Jsonclick ;
      private String lblTextblockalumnoobservaciones_Internalname ;
      private String lblTextblockalumnoobservaciones_Jsonclick ;
      private String sCtrlA1AlumnoId ;
      private String GXt_char3 ;
      private DateTime A6AlumnoFechaNacimiento ;
      private bool entryPointCalled ;
      private bool wbLoad ;
      private bool Rfr0gs ;
      private bool wbErr ;
      private bool n11AlumnoObservaciones ;
      private bool n10AlumnoNombreMadre ;
      private bool n9AlumnoNombrePadre ;
      private bool n31AlumnoWeb ;
      private bool n30AlumnoEmail ;
      private bool n6AlumnoFechaNacimiento ;
      private bool n5AlumnoNIF ;
      private bool returnInSub ;
      private bool AV5IsAuthorized ;
      private String A11AlumnoObservaciones ;
      private String A10AlumnoNombreMadre ;
      private String A9AlumnoNombrePadre ;
      private String A34AlumnoTelefono ;
      private String A31AlumnoWeb ;
      private String A30AlumnoEmail ;
      private String A5AlumnoNIF ;
      private String A3AlumnoApellidos ;
      private String A2AlumnoNombre ;
      private String A4AlumnoNombreCompleto ;
      private GXWebForm Form ;
      private IGxDataStore dsDefault ;
      private IDataStoreProvider pr_default ;
      private short[] H000K2_A1AlumnoId ;
      private String[] H000K2_A11AlumnoObservaciones ;
      private bool[] H000K2_n11AlumnoObservaciones ;
      private String[] H000K2_A10AlumnoNombreMadre ;
      private bool[] H000K2_n10AlumnoNombreMadre ;
      private String[] H000K2_A9AlumnoNombrePadre ;
      private bool[] H000K2_n9AlumnoNombrePadre ;
      private String[] H000K2_A34AlumnoTelefono ;
      private String[] H000K2_A31AlumnoWeb ;
      private bool[] H000K2_n31AlumnoWeb ;
      private String[] H000K2_A30AlumnoEmail ;
      private bool[] H000K2_n30AlumnoEmail ;
      private DateTime[] H000K2_A6AlumnoFechaNacimiento ;
      private bool[] H000K2_n6AlumnoFechaNacimiento ;
      private String[] H000K2_A5AlumnoNIF ;
      private bool[] H000K2_n5AlumnoNIF ;
      private String[] H000K2_A3AlumnoApellidos ;
      private String[] H000K2_A2AlumnoNombre ;
      private msglist BackMsgLst ;
      private msglist LclMsgLst ;
      private GxHttpRequest AV11HTTPRequest ;
      private GxWebSession AV10Session ;
      private SdtTransactionContext AV8TrnContext ;
      private SdtTransactionContext_Attribute AV9TrnContextAtt ;
   }

   public class alumnogeneral__default : DataStoreHelperBase, IDataStoreHelper
   {
      public ICursor[] getCursors( )
      {
         cursorDefinitions();
         return new Cursor[] {
          new ForEachCursor(def[0])
       };
    }

    private static CursorDef[] def;
    private void cursorDefinitions( )
    {
       if ( def == null )
       {
          Object[] prmH000K2 ;
          prmH000K2 = new Object[] {
          new Object[] {"@AlumnoId",SqlDbType.SmallInt,4,0}
          } ;
          def= new CursorDef[] {
              new CursorDef("H000K2", "SELECT [AlumnoId], [AlumnoObservaciones], [AlumnoNombreMadre], [AlumnoNombrePadre], [AlumnoTelefono], [AlumnoWeb], [AlumnoEmail], [AlumnoFechaNacimiento], [AlumnoNIF], [AlumnoApellidos], [AlumnoNombre] FROM [Alumno] WITH (NOLOCK) WHERE [AlumnoId] = @AlumnoId ORDER BY [AlumnoId] ",false, GxErrorMask.GX_NOMASK | GxErrorMask.GX_MASKLOOPLOCK, false, this,prmH000K2,1,0,true,true )
          };
       }
    }

    public void getResults( int cursor ,
                            IFieldGetter rslt ,
                            Object[] buf )
    {
       switch ( cursor )
       {
             case 0 :
                ((short[]) buf[0])[0] = rslt.getShort(1) ;
                ((String[]) buf[1])[0] = rslt.getVarchar(2) ;
                ((bool[]) buf[2])[0] = rslt.wasNull(2);
                ((String[]) buf[3])[0] = rslt.getVarchar(3) ;
                ((bool[]) buf[4])[0] = rslt.wasNull(3);
                ((String[]) buf[5])[0] = rslt.getVarchar(4) ;
                ((bool[]) buf[6])[0] = rslt.wasNull(4);
                ((String[]) buf[7])[0] = rslt.getVarchar(5) ;
                ((String[]) buf[8])[0] = rslt.getVarchar(6) ;
                ((bool[]) buf[9])[0] = rslt.wasNull(6);
                ((String[]) buf[10])[0] = rslt.getVarchar(7) ;
                ((bool[]) buf[11])[0] = rslt.wasNull(7);
                ((DateTime[]) buf[12])[0] = rslt.getGXDate(8) ;
                ((bool[]) buf[13])[0] = rslt.wasNull(8);
                ((String[]) buf[14])[0] = rslt.getVarchar(9) ;
                ((bool[]) buf[15])[0] = rslt.wasNull(9);
                ((String[]) buf[16])[0] = rslt.getVarchar(10) ;
                ((String[]) buf[17])[0] = rslt.getVarchar(11) ;
                break;
       }
    }

    public void setParameters( int cursor ,
                               IFieldSetter stmt ,
                               Object[] parms )
    {
       switch ( cursor )
       {
             case 0 :
                stmt.SetParameter(1, (short)parms[0]);
                break;
       }
    }

 }

}
